#include<iostream>
//#include<string>
#include<cstdio>
//#include<cstring>
//#include<cmath>
#include<algorithm>
int arr[505];

using namespace std;

int main()
{
    int N;
    int n=0;
    scanf("%d",&N);
    
    for(int tmp,i=0; i<N; i++)
    {
        scanf("%d",&tmp);
        if(tmp%2)
        {
            arr[n++] = tmp;
        }
    }
    
    sort(arr,arr+n);
    
    for(int i=0; i<n; i++)
    {
        if(i<n-1)
            printf("%d,",arr[i]);
        else
        {
            printf("%d",arr[i]);
        }
    }
    return 0;
}